home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail-5.65c+IDA-1.4.4.1 / S5 / Makefile.3b1 next >
Encoding:
Makefile  |  1991-04-17  |  2.2 KB  |  67 lines

  1. #
  2. # Copyright (c) 1988 Regents of the University of California.
  3. # All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms are permitted
  6. # provided that the above copyright notice and this paragraph are
  7. # duplicated in all such forms and that any documentation,
  8. # advertising materials, and other materials related to such
  9. # distribution and use acknowledge that the software was developed
  10. # by the University of California, Berkeley.  The name of the
  11. # University may not be used to endorse or promote products derived
  12. # from this software without specific prior written permission.
  13. # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  14. # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  15. # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  16. #
  17. #    @(#)Makefile    5.5 (Berkeley) 9/20/88
  18. #
  19. CC = gcc -g -fpcc-struct-return -fstrength-reduce -fcombine-regs -Wall
  20. CFLAGS=    -O -I. -I../support -I/usr/ethernet/include -DDEBUG -Dhpux
  21. LDFLAGS = -s
  22. STARTOFF = /lib/crt0s.o
  23. SHAREDLIB = shlib.ifile
  24. ALL=    rmail #mconnect mailstats praliases mail rmail
  25. SRCS=    mconnect.c mail.c mailstats.c praliases.c rmail.c
  26. OBJS=    mconnect.o mail.o mailstats.o praliases.o rmail.o
  27. MAN=    binmail.0 rmail.0
  28.  
  29. all: ${ALL}
  30.  
  31. rmail.o:    rmail.c ../support/sysexits.h 
  32.     ${CC} ${CFLAGS} -c rmail.c
  33.  
  34. rmail: rmail.o
  35.     ${LD} ${LDFLAGS} -o $@ $(STARTOFF) $@.o $(SHAREDLIB) -lnet
  36.  
  37. drmail: rmail.o
  38.     ${LD} -o rmail /lib/crt0.o rmail.o -lg -lnet -lc
  39.  
  40. mconnect:    $$@.c ../support/sysexits.h ../src/pathnames.h
  41.     ${CC} ${CFLAGS} -c $@.c
  42.     ${LD} ${LDFLAGS} -o $@ $(STARTOFF) $@.o $(SHAREDLIB) -lnet
  43.  
  44. mailstats mail:    $$@.c
  45.     ${CC} $(LDFLAGS) -shlib ${CFLAGS} -o $@ $@.c
  46.  
  47. praliases:    $$@.c
  48.     ${CC} $(LDFLAGS) -shlib ${CFLAGS} -o $@ $@.c -ldbm
  49.  
  50. shlib.ifile: /lib/shlib.ifile
  51.     egrep -v "sys_errlist|sys_nerr|perror|message" $? >$@
  52.  
  53. clean:
  54.     rm -f core ${ALL} ${OBJS} shlib.ifile
  55.  
  56. cleandir: clean
  57.     rm -f ${MAN} tags .depend
  58.  
  59. depend: ${SRCS}
  60.     mkdep -p ${CFLAGS} ${SRCS}
  61.  
  62. install: ${MAN}
  63.     install -s -o root -g bin -m 4755 mail ${DESTDIR}/bin/mail
  64.     install -s -o bin -g bin -m 755 rmail ${DESTDIR}/bin/rmail
  65.     install -s -o bin -g bin -m 755 mconnect mailstats praliases ${DESTDIR}/usr/lib
  66.     install -c -o bin -g bin -m 444 ${MAN} ${DESTDIR}/usr/man/cat1
  67.